package com.huan.quartz.job.impl;

import com.huan.quartz.job.AbstractCustomJob;
import com.huan.quartz.quartz.SpringApplicationContext;
import com.huan.quartz.service.QuartzJobCfgService;
import lombok.extern.slf4j.Slf4j;

/**
 * 测试任务
 *
 * @author huan.fu
 * @date 2018/9/10 - 17:30
 */
@Slf4j
public class DemoJob001 extends AbstractCustomJob {

	@Override
	public void doExecute(String workDate) {
		log.info("测试demo001开始执行...");
		SpringApplicationContext.getBean(QuartzJobCfgService.class).queryAllEnableJobCfgs().forEach(System.err::println);
		log.info("测试demo001结束执行...");
	}
}
